Frontend Forever App
We have a mobile app for you to download and use. And you can unlock many features in the app.
Get it now
Intall Later
Run
HTML
CSS
Javascript
Output
Document
H
T
M
L
@charset "UTF-8"; @import url(https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,600,700,800); *, :after, :before { box-sizing: border-box; padding: 0; margin: 0; } body{ background: #e5e5e5; } .container{ width: 1200px; height:400px; margin: 120px auto; background: #e5e5e5; border-radius: 120px; box-shadow: inset -15px -15px 10px white, inset 15px 15px 10px gray; } #box1,#box2,#box3,#box4{ text-align: center; font-size: 10em; margin: 90px 3px; width: 200px; height: 200px; float: left; margin-right: 10px; cursor: pointer; text-shadow: 5px 5px 8px red; } #box1:hover{ animation: animate1 2s ease-in-out infinite; } #box2:hover{ animation: animate2 2s ease-in-out infinite; } #box3:hover{ animation: animate3 2s ease-in-out infinite; } #box4:hover{ animation: animate4 2s ease-in-out infinite; } #box1{ margin-left: 180px; } @keyframes animate1{ 0%{ } 50%{ color: blue; font-size: 12em; text-shadow: 30px 30px 35px blue; } } @keyframes animate2{ 0%{ } 50%{ color: blue; font-size: 12em; text-shadow: 30px 30px 35px blue; transform: rotateZ(360deg); } } @keyframes animate3{ 0%{ } 50%{ color: blue; font-size: 12em; text-shadow: 30px 30px 35px blue; } 75%{ transform: rotateY(360deg); } } @keyframes animate4{ 0%{ } 50%{ color: blue; font-size: 12em; text-shadow: 30px 30px 35px blue; transform: translate(160px,0px); } }
console.log("Event Fired")